<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
</head>
<body>
<h1 style="backgroud-color: chocolate">欢迎登录</h1>
<form th:action="@{/login}" method="post">
    <label>
        用户名：
        <input type="text" name="username" required>
    </label><br>
    <label>
        密码：
        <input type="text" name="password" required>
    </label><br>
    <label>
        验证码：
        <input type="text" name="captcha" required><br/>
        <img th:src="@{/captcha/captcha.jpg}" alt="验证码"/>
    </label>
    <input type="submit" value="登录">
</form>
</body>
</html>